import request from "@/utils/index.js";
// 登录请求接口
export const loginService = (data) => {
  console.log(data);
  console.log(JSON.parse(JSON.stringify(data)));
  return request.post("/api/common/login", JSON.parse(JSON.stringify(data)));
};

// 注册请求接口
export const registerService = (data) => {
  console.log(data);
  return request.post("/api/common/register", data);
};

